<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>用户信息设置</title>
    <script>
        var requireExtraPaths = {
            extrance: '../../../system_js/sysUserSet'
        };
    </script>
    <jsp:include flush="true" page="../base/base.jsp"></jsp:include>
</head>
<body class="site-body">
<section class="main-container">
    <!-- construct tree start -->
    <article class="construct-tree construct-tree2" id="left">
        <div class="title-bar clearfix">

            <div class="tree-search clearfix">
                <input type="text" class="input-text" placeholder="搜索" style="width: 80px;" id="searchlabel">
                <span class="icon"></span>
            </div>
        </div>
        <a class="add-user" id="addNew">+新增用户</a>
        <div>
            <ul class="ztree" id="leftTree" style="overflow:auto;">
            </ul>
        </div>
    </article>
    <article class="site-col-extra overflow-a" id="right">
        <form id="userForm" name="userForm" class="pr-s">
        <div class="user-info-wrap">
            <div class="user-info-box">
                <h2 class="title-style1"><span>基本信息</span></h2>
                <input type='hidden' id="id" name="id" class="u-input"/>
                <input type='hidden' id="password" name="password" class="u-input"/>
                <ul class="form-grid form-grid2 clearfix">
                    <input type="hidden" id="corpId" name="corpId" readonly="readonly"/>
                    <li>
                        <label class="label-text label-require"><span class="red-star">*</span>用户编码：</label>
                        <input id="code" name="code" class="input-text" data-validator="{required:true,charNum:true}" maxlength="8" placeholder="最大长度为8个字符"/>
                    </li>
                    <li>
                        <label class="label-text label-require"><span class="red-star">*</span>用户帐号：</label>
                        <input id="acctName" name="acctName" class="input-text" data-validator="{required:true,charNum:true}" maxlength="16" placeholder="最大长度为16个字符"/>
                    </li>
                    <li>
                        <label class="label-text label-require"><span class="red-star">*</span>用户名称：</label>
                        <input id="name" name="name" class="input-text" data-validator="{required:true,maxLength:32}" maxlength="32"  placeholder="请输入用户名称"/>
                    </li>
                    <li>
                        <label class="label-text label-require"><span class="red-star">*</span>所属机构：</label>
                        <input type="hidden" id="organId" name="organId" />
                        <input id="organName" name="organName" class="input-text" user-type="treeDialog"
                            data-options="{url:'/baseOrgan/getOrganTree.htm',name:'organName',idKey:'organId',pIdKey:'parentOrganId'}" data-validator="{required:true}"  style="background-color: #f7f7f7"/>
                    </li>
                    <li>
                        <label class="label-text label-require"><span class="red-star">*</span>联系电话：</label>
                        <input id="ctcTel" name="ctcTel" class="input-text" maxlength="11" data-validator="{required:true,number:true}" placeholder="请输入联系电话" />
                    </li>
                    <li class="li-radio">
                        <label class="label-text label-require"><span
                                class="red-star">*</span>用户状态：
                        </label>
                        <label class="radio-wrap">
                                <input type="radio"  value="0" id="isClosed0"  name="isClosed" data-validator="{required:true}" />
                                <span class="span-text">启用</span>
                        </label>
                        <label class="radio-wrap">
                                <input type="radio" name="isClosed" value="1" id="isClosed1" />
                                <span class="span-text">停用</span>
                        </label>
                        <%-- <form:radiobutton path="isClosed" value="0" id="isClosed0"  class="radio" data-validator="{required:true}" disabled="true"/><label for="isClosed0"> 启用</label>
                        <form:radiobutton path="isClosed" value="1" id="isClosed1"  class="radio mleft" disabled="true"/><label for="isClosed1" >停用</label> --%>
                    </li>
                    <li class="li-radio">
                        <label class="label-text label-require"><span class="red-star">*</span>允许手机登录：</label>
                        <label class="radio-wrap">
                            <input type="radio"  value="1" id="allowMobileLogin0"  name="allowMobileLogin" data-validator="{required:true}"/>
                            <span class="span-text">是</span>
                        </label>
                        <label class="radio-wrap">
                            <input type="radio"  value="0" id="allowMobileLogin1" name="allowMobileLogin"/>
                            <span class="span-text">否</span>
                        </label>
                        <%-- <form:radiobutton path="allowMobileLogin" value="1" id="allowMobileLogin0"  class="radio" data-validator="{required:true}" disabled="true"/><label for="allowMobileLogin0"> 是</label>
                        <form:radiobutton path="allowMobileLogin" value="0" id="allowMobileLogin1"  class="radio mleft" disabled="true"/><label for="allowMobileLogin1">否</label> --%>
                    </li>
                    <li class="li-radio" style="display: none;">
                        <label class="label-text label-require"><span class="red-star">*</span>用户类型：</label>
                        <label class="radio-wrap">
                            <input type="radio"  value="0" id="userType0" name="userType" class="radio"  data-validator="{required:true}"/>
                            <span class="span-text">操作员</span>
                        </label>
                        <label class="radio-wrap">
                            <input type="radio"  value="1" id="userType1" name="userType" class="radio mleft"/>
                            <span class="span-text">管理层用户</span>
                        </label>
                        <%-- <form:radiobutton path="userType" value="0" id="userType0" class="radio"  data-validator="{required:true}"/><label for="userType0">操作员</label>
                        <form:radiobutton path="userType" value="1" id="userType1" class="radio mleft"/><label for="userType1">管理层用户</label> --%>
                    </li>
                    <li class="li-textarea mb0">
                        <label class="label-text vt">备注：</label>
                        <textarea id="remark" name="remark" cols="30" rows="4" maxlength="250" data-validator="{maxLength:250}"
                        placeholder="请输入备注信息"></textarea>
                    </li>
                </ul>
                </form>
            </div>
            <div class="user-info-box"  id="userRole"  style="display: none;">
			<fieldset>
				<h2 class="title-style1">
					<span>角色分配</span>
					<div class="operate-box">
						<!-- <a class="add" id="addRole" style="display: none" data-authority="e662d1e0e21542099ff0b5eca2c9cdaf" >添加角色</a>
                        <a class="del" id="deleteUser" style="display: none" data-authority="2840779124ed403aa6df0f94de730777">删除角色</a> -->
						<a class="add" id="addRole" >添加角色</a>
						<a class="minus" id="deleteUser" >删除角色</a>
					</div>
				</h2>
				<div class="table-wrap table-align-center">
					<table width="100%" class="table-style1" id="roleList">
					</table>
				</div>
			</fieldset>
            </div>
			<div class="user-btn-box">
				<a id="save" class="btn btn-save btn-medium">保存</a>
                <a id="commonResetPass" class="btn btn-cancel btn-medium">密码重置</a>
                <a id="userDel" class="btn btn-cancel btn-medium" >删除</a>
                <!-- <a id="save" class="save" href="javascript:;">保存</a>
                <a id="commonResetPass" class="del" href="javascript:;" style="display: none" data-authority="52a81a2c2a6e4d92b4d5f3a4cb402474">密码重置</a>
                <a id="userDel" class="del" href="javascript:;" style="display: none" data-authority="2ad3e4b9ac50492681010b04f3eac030">删除</a>  -->
			</div>
		</div>
	</article>
</section>
</body>
</html>